www.gusucode.com > 有监督的 CNN 网络完成对MNIST 数字的识别 > 有监督的 CNN 网络完成对MNIST 数字的识别/CNN—卷积神经网络数字识别/readtest.m
d=dir('test/normal/*.bmp'); n=length(d); for i=1:n test=imread(['test/normal/' d(i).name]); pi = preproc_image(test); [out,sinet]=sim(sinet,pi); subplot(4,5,i);imshow(pi') num(i)=find(out==max(out))-1; end num=reshape(num,5,4)'; disp(num);